<?php

/**
 * Description of Notice
 *
 * @author pdelavega
 */
class App_View_Helper_Notice extends Zend_View_Helper_Abstract
{
    // Color hexadecimal de #FFCCEE
    public $startColour = 16764142;

    public $messages = array();

    public function notice($message = "no message")
    {
        $this->startColour -= 6000;
        $this->messages[] = $message;
        $opt = "<div style='padding: 4px; text-align: center; background: #".  dechex($this->startColour)."'>";
        foreach ($this->messages as $msg)
        {
            $opt .= $msg.' ';
        }
        $opt .= "</div>";
        return $opt;
    }
}
?>
